<template>
	<view class="app">
		<view class="content" v-html="formData.content"></view>
		<u-button class="bottom" type="primary" 
			@click="close">已阅读，关闭协议页面</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData: {
					content: '',
				},
			}
		},
		onLoad() {
			this.getData();
		},
		methods: {
			getData(){
				vk.callFunction({
						url: this.$api.AgreementInfo,
						loading: true,
						data: {
							type: 10
						}
					}).then(res => {
						console.log(res)
						this.formData = res.item
					})
			},
			close(){
				vk.navigateBack();
			}
		}
	}
</script>

<style>

</style>
